package com.hhs.storage.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import springfox.documentation.annotations.ApiIgnore;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author yuanjun
 * @since 2024-01-12
 */
@Data
public class ZrReport implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 总结报告表id
     */
    private String id;

    /**
     * 抬头
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 发布人id
     */
    private String userId;
    /**
     * 0日，1周，2月，3季，4年
     */
    private Integer type;

    /**
     * 写报的人选的部门id
     */
    private String departmentId;
    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 报告的指定时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reportTime;
    /**
     * 部门ids
     */
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String[] departIds;

    /**
     * typeids
     */
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String[] typeIds;
    /**
     * types多选类型
     */
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String types;
    /**
     * user对象
     */
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private BaseUser user;

    /**
     * departmentname
     */
    @ApiModelProperty(hidden = true)
    @TableField(exist = false)
    private String departmentName;

}
